// 表单字段类型定义
const FormDataType = [
    "number",   // id
    "number",   // couponId
    "number",   // customerId
    "number",   // status
    "dateTime", // receiveTime
    "dateTime", // usedTime
    "number",   // orderId
    "dateTime", // expireTime
    "dateTime", // createTime
    "dateTime", // updateTime
    "number"    // isDeleted
];

// 表单默认数据
const FormData = {
    id: null,
    couponId: null,
    customerId: null,
    status: null,
    receiveTime: null,
    usedTime: null,
    orderId: null,
    expireTime: null,
    createTime: null,
    updateTime: null,
    isDeleted: null
};

// 字段标签
const labels = {
    id: "编号",
    couponId: "优惠券ID",
    customerId: "乘客ID",
    status: "优化券状态（1：未使用 2：已使用）",
    receiveTime: "领取时间",
    usedTime: "使用时间",
    orderId: "订单id",
    expireTime: "过期时间",
    createTime: "创建时间",
    updateTime: "更新时间",
    isDeleted: "删除标记（0:不可用 1:可用）"
};

// 选项配置
const options = {
    status: [
        { value: 1, label: "未使用" },
        { value: 2, label: "已使用" }
    ],
    isDeleted: [
        { value: 0, label: "不可用" },
        { value: 1, label: "可用" }
    ]
};

// 统一导出配置
export const CouponCustomerTableConfig = {
    FormData,
    FormDataType,
    labels,
    options
};